package com.example.controller.instructor;

import com.example.pojo.instructor.Teacher;
import com.example.service.impl.instructor.TeacherServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 *
 * @author 小苏
 * @ClassName:TeacherController
 * @description: TODO
 * @data 2022/12/7 23:08
 * @version: 1.0
 **/
@CrossOrigin
@RestController
@RequestMapping("/tea")
public class TeacherController {
    @Autowired
    private TeacherServiceImpl teacherService;
    @ResponseBody
    @RequestMapping("/getTea")
    public List<Teacher> get(){
        return teacherService.getTea();
    }
}
